package HomeWork1;

public class Chick extends Animal{
    public Chick(){

    }
    public Chick(String name, int age, String color){
        super(name, age, color);
    }

    @Override
    public void eat() {
        System.out.println(name+","+age+","+color+"鸡吃虾米");
    }
    public void layEggs(){
        System.out.println(name+","+age+","+color+"鸡下蛋");
    }
}
